package com.sy;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @className: PageVo
 * @author: Mr.Liu
 * @date: 2025/10/27 14:58
 * @Version: 1.0
 * @description:统一分页响应的信息封装
 */
@Data
@Schema(description = "分页查询输出信息")
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class PageVO<T> {
    //当前页
    private Integer curPage;
    //页容量
    private Integer pageSize;
    //总记录数
    private Long total;
    //每页显示的数据
    private List<T> dataList;
}
